package _18_Abstraction_Polymorphism;

public class Zoo
{
	Mammal [] mammals = new Mammal[3];
	
	public void makeAllAnimalsNoisy()
	{
		for (int i = 0; i < mammals.length; i++) 
		{
			System.out.println("----------------------");
			mammals[i].stopMoving();
			mammals[i].eat("grass");
		}
	}
}
